package com.innovamed.websocket.monitor;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

import com.innovamed.websocket.plugin.AppPlugin;
/**
* 
* Copyright: Copyright (c) 2019 Jun_Zhou
* 
* @ClassName: Starter.java
* @Description: SpringBoot项目启动相关的类;
* 
* @version: v1.0.0
* @author: JunZhou
* @Email: 1769676159@qq.com
* @Site: CERNO
* @date: 2019年9月27日 下午4:39:59
 */
@Component
@Order(value = 1)
public class Starter implements CommandLineRunner
{
	@Autowired
	AppPlugin appPlugin;
	
	@SuppressWarnings("static-access")
	@Override
	public void run(String... args) throws Exception
	{
		appPlugin.initRabbitMQCustomer();
	}
}